home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / wlib11_2.zip / EXAMPLES.EXE / EXAM20.C < prev    next >
C/C++ Source or Header  |  1991-03-13  |  627b  |  21 lines

  1.   #include "window.h"
  2.   #define NORM   CREATE_VIDEO_ATTRIBUTE(black,white)
  3.   #define REVERSE CREATE_VIDEO_ATTRIBUTE(white,black)
  4.  
  5.  
  6.  
  7.   WPOINTER w;
  8.   char buf[] = "Hello World!!";
  9.  
  10.   main()
  11.   {
  12.     WindowInitializeSystem();
  13.     WindowSaveInitial(0);
  14.     w = WindowInitialize(BORDER,1,1,20,10,NORM,NORM,SINGLEBOX);
  15.     WindowOpen(w);
  16.     WindowDisplay(w,1,NOEFFECT);
  17.     GET_KEY();
  18.     WindowWriteCharactersAttr(w,buf,2,1,REVERSE,13);  /* Writes "Hello World!!"
  19.                                                          using the REVERSE
  20.                                                          attribute */
  21.   }